package io.renren.modules.generator.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.generator.dao.BsnGonggaoDao;
import io.renren.modules.generator.entity.BsnGonggaoEntity;
import io.renren.modules.generator.service.BsnGonggaoService;


@Service("bsnGonggaoService")
public class BsnGonggaoServiceImpl extends ServiceImpl<BsnGonggaoDao, BsnGonggaoEntity> implements BsnGonggaoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BsnGonggaoEntity> page = this.selectPage(
                new Query<BsnGonggaoEntity>(params).getPage(),
                new EntityWrapper<BsnGonggaoEntity>()
        );

        return new PageUtils(page);
    }

	@Override
	public PageUtils queryPage(Map<String, Object> params, EntityWrapper<BsnGonggaoEntity> wrapper) {
        Page<BsnGonggaoEntity> page = this.selectPage(
                new Query<BsnGonggaoEntity>(params).getPage(),
                wrapper
        );

        return new PageUtils(page);
	}

    
}
